import pytest


# 有params参数
@pytest.fixture
def fun(request):
    print("返回的数据是", request.param)
    return request.param + "_666"


# 无params参数
@pytest.fixture()
def fun2(request):
    print("返回的数据是：", request.param)
    return request.param + "_6"


@pytest.mark.parametrize("fun,fun2", [("qzcsbj", "ren"), ("jack", "tom")], indirect=True)
def test_case(fun, fun2):
    print(f"fun={fun}, fun2={fun2}")
